
public class WhileLoopDemo {

	public static void main(String[] args) {
		// Print 1 to 10 numbers using  while loop.
		
		int i=1;
		
			while(i<11)
			{
				System.out.println("Counter ="+ i);
				i++;
			}
		
			System.out.println("after while loop");
		}

}

/*Don't print of the condition is not true.

int i=15;

	while(i<11)
	{
		
		System.out.println("Counter ="+ i);
		i++;
	}

	System.out.println("after while loop");
}
}
*/


